package com.lagou.zxy;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

/**
 * @author : zhangxuyuan
 * @Project: mongo
 * @Package com.lagou.zxy
 * @date Date : 2021年03月06日 23:15
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = App.class)
public class AppTest {


    @Autowired
    ResumeDao resumeDao;

    @Test
    public void test01()
    {
        Resume resume=new Resume(null,"hhh",50.0);
        Resume save = resumeDao.insert(resume);
        System.out.println(save);
    }

    @Test
    public void test02()
    {
        Resume resume = resumeDao.findByName("test11");
        System.out.println(resume);
    }
}
